

<%@ page import="eudjok.Dj" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'dj.label', default: 'Dj')}" />
        <title><g:message code="default.edit.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
        </div>
        <div class="body">
            <h1><g:message code="default.edit.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${djInstance}">
            <div class="errors">
                <g:renderErrors bean="${djInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form method="post" enctype="multipart/form-data" action="update">
                <g:hiddenField name="id" value="${djInstance?.id}" />
                <g:hiddenField name="version" value="${djInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="nomeCompleto"><g:message code="dj.nomeCompleto.label" default="Nome Completo" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: djInstance, field: 'nomeCompleto', 'errors')}">
                                    <g:textField name="nomeCompleto" value="${djInstance?.nomeCompleto}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="email"><g:message code="dj.email.label" default="Email" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: djInstance, field: 'email', 'errors')}">
                                    <g:textField name="email" value="${djInstance?.email}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="nomeUsuario"><g:message code="dj.nomeUsuario.label" default="Nome Usuario" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: djInstance, field: 'nomeUsuario', 'errors')}">
                                    <g:textField name="nomeUsuario" value="${djInstance?.nomeUsuario}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="bio"><g:message code="dj.bio.label" default="Descrio" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: djInstance, field: 'bio', 'errors')}">
                                    <g:textField name="bio" maxlength="15" value="${djInstance?.bio}" />
                                </td>
                            </tr>
							
							<tr class="prop">
                                <td valign="top" class="name">
                                    <label for="generoMusical"><g:message code="dj.generoMusical.label" default="Genero Musical" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: djInstance, field: 'generoMusical', 'errors')}">
                                    <g:textArea name="generoMusical" value="${djInstance?.generoMusical}" rows="2" cols="40"/>
                                </td>
                            </tr>
							
							<tr class="prop">
                                <td valign="top" class="name">
                                    <label for="artistasPreferidos"><g:message code="dj.artistasPreferidos.label" default="Artistas Preferidos" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: djInstance, field: 'artistasPreferidos', 'errors')}">
                                    <g:textArea name="artistasPreferidos" value="${djInstance?.artistasPreferidos}" rows="2" cols="40"/>
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="foto"><g:message code="dj.foto.label" default="Foto" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: djInstance, field: 'foto', 'errors')}">
                                    <input type="file" name="arquivo"/>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
				<div class="buttons">
                    <span class="button"><g:submitButton name="update" class="save" value="${message(code: 'default.button.update.label', default: 'Atualiza')}" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
